home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / vd115q.zip / RUNRA.BAT < prev    next >
DOS Batch File  |  1990-11-04  |  6KB  |  258 lines

  1. @echo off
  2. dtr on
  3. at h1
  4. if exist d:\start.flg start
  5. if z%1 == zstart goto start
  6. :begin
  7.    cls
  8.    echo               RunRA.Bat    - Boot Factory BBS
  9.    echo                              FidoNET 1:264/19
  10.    echo.
  11.    echo                              Last Update:  16 Sep 90
  12.    echo.
  13.  
  14.  
  15.           cdd D:\qbbs
  16.           tm /l >> d:\system.log
  17.           echo *** Loading RA Mailer Shell *** >> d:\system.log
  18.  
  19.           qbsquote d:\qbbs\text\logoff
  20.          :start
  21.           if exist d:\seadog\file\nodediff.* call svc nodediff
  22.           if exist d:\seadog\file\fnews*.* call svc fidonews
  23.           if exist d:\xlat\nodediff.* call svc xlat
  24.           if exist d:\seadog\file\*.tic call svc tick
  25.           if exist d:\seadog\file\al.zip call svc importal
  26.           if not exist d:\qmx\7443????.* goto skip_xrs
  27.           copy d:\qmx\7443????.* d:\seadog\file
  28.           del d:\qmx\7443????.*
  29.           call svc toss
  30.  
  31.          :skip_xrs
  32.           skip 2
  33.           tm /l
  34.           ramfree
  35.           echo Loading RA and shelling to FD
  36.           cdd d:\qbbs
  37.           ra -m\fd\fd.exe*M -E20
  38.           goto after_quick
  39.  
  40.          :after_msg
  41.           ra -R -L -E20
  42.  
  43.          :after_quick
  44.           if errorlevel 210 goto scanecho
  45.           if errorlevel 200 goto tossnet
  46.           if errorlevel 190 goto unpackmail
  47.           if errorlevel 111 goto arcmail
  48.           if errorlevel 102 goto qmx
  49.           if errorlevel 101 goto validoor
  50.           if errorlevel 100 goto localbbs
  51.           if errorlevel  90 goto remote
  52.           if errorlevel  73 boot
  53.           if errorlevel  72 goto makenl
  54.           if errorlevel  71 goto filedoor
  55.           if errorlevel  49 goto Cleanup
  56.           if errorlevel  48 goto weekend
  57.           if errorlevel  20 goto begin
  58.           if errorlevel  16 goto fossil
  59.           if errorlevel  15 goto modeminit
  60.           if errorlevel  14 goto modemresp
  61.           if errorlevel  13 goto fulldisk
  62.           if errorlevel  12 goto external
  63.           if errorlevel  11 goto internal
  64.           if errorlevel  10 goto end
  65.           if errorlevel   5 goto net&echo
  66.           if errorlevel   4 goto echo_only
  67.           if errorlevel   3 goto net_only
  68.           goto start
  69.  
  70.  
  71.          :Localbbs
  72.           cdd d:\qbbs
  73.           ra -L -E20
  74.           goto After_quick
  75.  
  76.          :remote
  77.           xu watchcd:0:ON
  78.           ctty com1
  79.           4dos
  80.           echo Returning to Remote Access
  81.           ctty con
  82.           cdd d:\qbbs
  83.           xu watchcd:0:OFF
  84.           goto After_Msg
  85.  
  86.          :loc_remote
  87.           4dos
  88.           goto after_msg
  89.  
  90.          :qmx
  91.           raqmx286
  92.           goto after_msg
  93.  
  94.          :validoor
  95.           call validate.bat
  96.           goto after_msg
  97.  
  98.          :net&echo
  99.           cdd d:\qbbs
  100. rem          ZMailQ NE
  101. rem          mailscan
  102.           mbutil export
  103.  
  104.          :echo_only
  105.           cdd d:\qbbs
  106.           ZMailQ EE EP PA NS
  107.           goto begin
  108.  
  109.          :net_only
  110.           cdd d:\qbbs
  111. rem          ZMailQ NE
  112. rem          mailscan
  113.           mbutil export
  114.           goto begin
  115.  
  116.          :unpackmail
  117.           dtr on
  118.           at h1
  119.           tm /l >> d:\system.log
  120.           timer >> d:\system.log
  121.           echo *** Processing Incoming ARCmail >> d:\system.log
  122.           cdd d:\seadog\file
  123.           spaz -F -M264/19 D:\SEADOG\FILE
  124.           cdd d:\qbbs
  125. rem          areafix EC
  126.           elvis
  127.           ZMailQ PI PA EP EI NF NS FLtoss.log
  128.           if not exist toss.log goto skiplink
  129.           mbutil link -clean
  130.           del toss.log
  131.          :skiplink
  132.           if not exist fastfwd.bat goto a2
  133.           call fastfwd.bat
  134.           ZMailQ PA EP EE NS FAfastfwd.bbs
  135.           del fastfwd.bat
  136.          :a2
  137.           goto resume
  138.  
  139.           if errorlevel 255 goto Q255
  140.           if errorlevel   5 goto Q5
  141.           if errorlevel   4 goto Q4
  142.           if errorlevel   3 goto Q3
  143.           if errorlevel   2 goto Q2
  144.           if errorlevel   1 goto Q1
  145.  
  146.          :resume
  147.           cdd d:\qbbs
  148.           timer >> d:\system.log
  149.           goto start
  150.  
  151.          :tossnet
  152.           cdd d:\qbbs
  153.           ZMailQ NI
  154.           goto start
  155.  
  156.          :scanecho
  157.           cdd d:\qbbs
  158.           ZMailQ EE EP PA NS
  159.           goto start
  160.  
  161.          :ArcMail
  162.           cdd d:\fd
  163.           arcmail to 264/27 -0
  164.           cdd d:\qbbs
  165.           goto start
  166.  
  167.          :MAKENL
  168.           call Node_Upd
  169.           cdd d:\qbbs
  170.           goto start
  171.  
  172.          :CLEANUP
  173.           task 10 Execute Cleanup?
  174.           if errorlevel 1 goto clean
  175.           goto start
  176.  
  177.          :CLEAN
  178.           call svc mkctrl cleanup movetemp mcfreq mcfram renum dskspace defrag reboot
  179.           goto start
  180.  
  181.          :WEEKEND
  182.           task 10 Execute Weekend?
  183.           if errorlevel 1 goto wkend
  184.           goto start
  185.  
  186.          :WKEND
  187.           call svc weekend moderate scan virii
  188.           goto start
  189.  
  190.          :FILEDOOR
  191.           cdd d:\qbbs
  192.           copy users.bbs e:\sysfiles
  193.           fd_upd
  194.           cdd d:\fd
  195.           xr get software 27 /c
  196.           xr get files 160 /c
  197.           call svc fishing
  198.           goto start
  199.  
  200.          :fossil
  201.           Echo Wrong Fossil Version Error
  202.           goto end
  203.  
  204.          :modeminit
  205.           Echo Unable To Initialize Modem
  206.           goto end
  207.  
  208.          :modemresp
  209.           Echo Modem Not Responding
  210.           goto end
  211.  
  212.          :fulldisk
  213.           Echo Insufficient Disk Space To Proceed
  214.           goto end
  215.  
  216.          :external
  217.           Echo External Error - System File Missing
  218.           goto end
  219.  
  220.          :internal
  221.           Echo Internal Error
  222.           goto end
  223.  
  224.          :Q255
  225.           cls
  226.           echo ZMailQ reports User Abort
  227.           goto end
  228.  
  229.          :Q5
  230.           cls
  231.           echo ZMailQ reports Error 5
  232.           goto end
  233.  
  234.          :Q4
  235.           cls
  236.           echo ZMailQ reports Error 4
  237.           goto end
  238.  
  239.          :Q3
  240.           cls
  241.           echo ZMailQ reports Error 3
  242.           goto end
  243.  
  244.          :Q2
  245.           cls
  246.           echo ZMailQ reports Error 2
  247.           goto end
  248.  
  249.          :Q1
  250.           cls
  251.           echo ZMailQ reports Error 1
  252.           goto end
  253.  
  254.          :end
  255.           dtr on
  256.           at h1
  257.  
  258.